
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>项目部署 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    
    <link rel="prev" href="../publish/gitpages.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../howtouse/">
            
                <a href="../howtouse/">
            
                    
                    环境搭建
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../howtouse/nodejsinstall.html">
            
                <a href="../howtouse/nodejsinstall.html">
            
                    
                    Node.js安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../howtouse/gitbookinstall.html">
            
                <a href="../howtouse/gitbookinstall.html">
            
                    
                    Gitbook安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../howtouse/gitbookcli.html">
            
                <a href="../howtouse/gitbookcli.html">
            
                    
                    Gitbook命令行速览
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../book/">
            
                <a href="../book/">
            
                    
                    创建项目
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../book/file.html">
            
                <a href="../book/file.html">
            
                    
                    初始化
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../book/prjinit.html">
            
                <a href="../book/prjinit.html">
            
                    
                    内容编辑
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../output/">
            
                <a href="../output/">
            
                    
                    本地预览
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../output/outfile.html">
            
                <a href="../output/outfile.html">
            
                    
                    生成目录文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../output/pdfandebook.html">
            
                <a href="../output/pdfandebook.html">
            
                    
                    生成预览文件
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../publish/">
            
                <a href="../publish/">
            
                    
                    输出静态网站
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../publish/gitpages.html">
            
                <a href="../publish/gitpages.html">
            
                    
                    两种方式
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter active" data-level="1.6" data-path="./">
            
                <a href="./">
            
                    
                    项目部署
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >项目部署</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x9879;&#x76EE;&#x90E8;&#x7F72;">&#x9879;&#x76EE;&#x90E8;&#x7F72;</h1>
<p>GitBook&#x5236;&#x4F5C;&#x7535;&#x5B50;&#x4E66;&#x7684;&#x90E8;&#x7F72;&#x73AF;&#x8282;&#xFF0C;&#x53EF;&#x4EE5;&#x4F7F;&#x7528; Github Pages &#x670D;&#x52A1;&#x5C06; GitBook &#x53D1;&#x5E03;&#x5230;&#x4E92;&#x8054;&#x7F51;&#x4E0A;&#x3002;</p>
<blockquote>
<p>&#x521B;&#x5EFA;&#x4ED3;&#x5E93;&#x4E0E;&#x5206;&#x652F;</p>
</blockquote>
<ol>
<li><p>&#x767B;&#x9646;&#x5230; Github&#xFF0C;&#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x65B0;&#x7684;&#x4ED3;&#x5E93;&#xFF0C;&#x52FE;&#x9009;&#x4E0A; README.md &#x3002;</p>
<p><strong>&#x6CE8;&#x610F;&#xFF1A;&#x5982;&#x679C;&#x6CA1;&#x6709;&#x52FE;&#x9009; README.md &#x5C06;&#x4F1A;&#x5BFC;&#x81F4;&#x670D;&#x52A1;&#x5668;&#x90E8;&#x7F72;&#x5931;&#x8D25;&#x3002;</strong></p>
</li>
<li><p>&#x514B;&#x9686;&#x4ED3;&#x5E93;&#x5230;&#x672C;&#x5730;&#xFF1A; <code>git clone git@github.com:/USER_NAME/book.git</code>&#x3002;</p>
</li>
<li><p>&#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x65B0;&#x5206;&#x652F;&#xFF1A; git checkout -b gh-pages&#xFF0C;&#x6CE8;&#x610F;&#xFF0C;&#x5206;&#x652F;&#x540D;&#x5FC5;&#x987B;&#x4E3A; gh-pages &#x3002;</p>
<p><strong>&#x6CE8;&#x610F;&#xFF1A;&#x8BE5;&#x5206;&#x652F;&#x7528;&#x4E8E;&#x5B58;&#x50A8;&#x6253;&#x5305;&#x6216;&#x8005;&#x542F;&#x52A8;&#x65F6;&#x751F;&#x6210;&#x7684;&#x9759;&#x6001;&#x6587;&#x4EF6;</strong></p>
</li>
<li><p>&#x5C06;&#x5206;&#x652F; push &#x5230;&#x4ED3;&#x5E93;&#xFF1A; git push -u origin gh-pages&#x3002;</p>
</li>
<li><p>&#x6309;&#x7167;&#x5E38;&#x89C4;&#x6B65;&#x9AA4;&#x63D0;&#x4EA4;&#x4EE3;&#x7801;&#x5230;gh-pages&#x5206;&#x652F;</p>
<pre><code>git add .
git commit -m &quot;first commit&quot;
git push
</code></pre></li>
<li><p>&#x9009;&#x62E9;gh-pages&#x5206;&#x652F;&#x8FDB;&#x884C;&#x90E8;&#x7F72;&#x3002;</p>
</li>
</ol>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="../publish/gitpages.html" class="navigation navigation-prev navigation-unique" aria-label="Previous page: 两种方式">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"项目部署","level":"1.6","depth":1,"previous":{"title":"两种方式","level":"1.5.1","depth":2,"path":"publish/gitpages.md","ref":"publish/gitpages.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["livereload"],"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"end/README.md","mtime":"2023-02-13T07:16:42.619Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2023-02-13T07:57:16.450Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

